# -*- coding: UTF-8 -*-
# server_assets
# @File : CharacterBaseInfoComponent.py
# @Date : 2023-08-30
# @Author  : wuzhouhai
# @Desc:
import KBEngine
from KBEDebug import *
from gameComponent.BaseInfoComponent import BaseInfoComponent


class CharacterBaseInfoComponent(BaseInfoComponent):
    """玩家基础信息组件类"""

    def __init__(self, owner, cid, nickName=u"", viptype=1):
        """
        Constructor
        """
        BaseInfoComponent.__init__(self, owner, cid, nickName)
        self._viptype = viptype  # 玩家类型
        self._createTime = u''

    # ----------------nickName-----------

    def setnickName(self, nickName):  # 从数据库中读取后赋值
        self._baseName = nickName

    def getNickName(self):  # 获取内存中的值
        return self._baseName

    def setType(self, viptype):  #
        self._viptype = viptype

    def getType(self):
        return self._viptype

    def setCreateTime(self, createTime):
        self._createTime = createTime

    def getCreateTime(self):
        return self._createTime
